//
//  HTGroupModel.m
//  HeartTravel
//
//  Created by lanou on 15/10/24.
//  Copyright © 2015年 tantan. All rights reserved.
//

#import "HTGroupModel.h"

@implementation HTGroupModel
- (instancetype)init
{
    self = [super init];
    if (self)
    {
        _certified_arr = [NSMutableArray arrayWithCapacity:0];
        _user_data = [[HTUser_data alloc]init];
    }
    return self;
}

- (void)setValue:(id)value forKey:(NSString *)key
{
    if ([key isEqualToString:@"certified_arr"]) {
        for (NSDictionary *dict in value) {
            HTUser_data *model = [[HTUser_data alloc]init];
            [model setValuesForKeysWithDictionary:dict];
            [self.certified_arr addObject:model];
        }
    }else if ([key isEqualToString:@"user_data"]){
        [_user_data setValuesForKeysWithDictionary:value];
    }else{
        [super setValue:value forKey:key];
    }
    
}
@end
